package com.liao.servlet;

import com.liao.service.PatientDetailService;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import java.io.IOException;

@WebServlet("/patientDetail")
public class PatientDetailServlet extends HttpServlet {
    @Override
    public void service(ServletRequest req, ServletResponse response) throws ServletException, IOException {
        PatientDetailService service=new PatientDetailService();
        String json=service.findAll();
        //2.响应结果
        response.setContentType("application/json;charset=utf-8");
        response.getWriter().write(json);
    }
}
/*

[
    {
        "taskId":"5",
        "patientId":"3",
        "actionTime":"6",
        "searchKeyword":"5",
        "orderCategoryIds":"16",
        "orderProductIds":"46",
        "payCategoryIds":"19",
        "payProductIds":"55",
        "userId":2,
        "pageId":9,
        "clickCategoryId":7,
        "clickProductId":1
    }
]

 */